package com.cuijq.ms.emailbridge.v1;

import java.util.List;

/**
 * @author by CuiJQ
 * @Classname Notification
 * @Description Notification Description
 * @Date 2021/5/26 15:07
 */
public class Notification {

  private List emailAddresses;
  private List telephones;
  private List wechatIds;

  public Notification() {
  }

  public void setEmailAddress(List emailAddress) {
    this.emailAddresses = emailAddress;
  }

  public void setTelephones(List telephones) {
    this.telephones = telephones;
  }

  public void setWechatIds(List wechatIds) {
    this.wechatIds = wechatIds;
  }

  public void notify(NotificationEmergencyLevel level, String message) {
    if (level.equals(
        NotificationEmergencyLevel.SEVERE)) {
      //...自动语音电话
    } else if (level.equals(
        NotificationEmergencyLevel.URGENCY)) {
      //...发微信
    } else if (level.equals(
        NotificationEmergencyLevel.NORMAL)) {
      //...发邮件
    } else if (level.equals(NotificationEmergencyLevel.TRIVIAL)) {
      //...发邮件
    }
  }
}
